package com.springboot.cloud.sysapps.exam.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.cloud.sysapps.exam.dao.SkillMapper;
import com.springboot.cloud.sysapps.exam.entity.po.Skill;
import com.springboot.cloud.sysapps.exam.service.ISkillService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkillService extends ServiceImpl<SkillMapper, Skill> implements ISkillService {
    @Override
    public List<Skill> findByModuleId(String moduleId) {
        QueryWrapper<Skill> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("modules_id",moduleId);
        return this.list(queryWrapper);
    }
}
